package com.paw.feign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lvzihai
 * @date 2021/7/9
 **/
@FeignClient(value = "paw-dogs-sky-service")
public interface SkyFeignClient {

  @PostMapping("/deliver")
  String deliver (@RequestParam(name = "packageBox") String packageBox);


  @PostMapping("/feignPost")
  String feignPost(@RequestParam(name = "name") String name);

  @PostMapping("/feignBody")
  String feignBody(String name);

  @PostMapping("/feignParamWithBody")
  String feignParamWithBody(@RequestParam("str1") String str1,@RequestBody String body);

  }
